home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / amspel20.zip / SPELL.BAT < prev    next >
DOS Batch File  |  1992-08-01  |  605b  |  25 lines

  1. @echo off
  2.   if .%1==. goto syntax
  3.   if exist wrong.spl del wrong.spl > nul
  4.   amspell.exe %1 wrong.spl alldicts.us @options.spl
  5.   if not exist learnspl.spl goto nothinglearned
  6.   copy learnspl.spl+correct.us > nul
  7.   amspell.exe learnspl.spl correct.us @sort.opt
  8.   del learnspl.spl > nul
  9. :nothinglearned
  10.   if not exist wrong.spl goto nowrongspl
  11.   copy %1 backup.spl
  12.   copy wrong.spl %1 > nul
  13.   del wrong.spl > nul
  14.   cls
  15.   echo the backup of %1 is called BACKUP.SPL
  16.   goto end
  17. :nowrongspl
  18.   cls
  19.   goto end
  20. :syntax
  21.   echo Syntax: SPELL [filename]
  22.   echo example: SPELL myfile.tex
  23. :end
  24.  
  25.